package com.example.cloud.model.inventory;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/8/18.
 * 异常信息
 */
@Entity(name = "abnormal")
@Data
@EqualsAndHashCode(callSuper = false)
public class Abnormal extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 库存明细主键
    @Column(name = "inbound_details_id")
    private Long inboundDetailsId;
    // 商品名称
    @Column(name = "item_id")
    private Long itemId;
    // 商品名称
    @Column(name = "item_name")
    private String itemName;
    // 异常类型主键
    @Column(name = "type_id")
    private Long typeId;
    // 异常类型名称
    @Column(name = "type_name")
    private String typeName;
    // 异常数量
    @Column(name = "quantity")
    private int quantity;
    // 异常状态
    @Column(name = "status")
    private int status;
    // 提报人主键
    @Column(name = "user_id")
    private Long userId;
    // 提报人名称
    @Column(name = "user_name")
    private String userName;
    // 异常概述
    @Column(name = "abnormal_desc")
    private String abnormalDesc;
}
